<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="countUp.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>

	</body>
	<script type="text/javascript">
		setTimeout(function() {
			var options = {
				useEasing: true, //过渡动画效果，默认ture
				useGrouping: true, // 千分位效果，例：1000->1,000。默认true
				separator: ',', // 使用千分位时分割符号
				decimal: '.', // 小数位分割符号
				prefix: '', // 前置符号
				suffix: '' // 后置符号，可汉字
			};
			var flag = 10
			var list = 10
			// target,startVal,endVal,decimals,duration,options
			// dom节点, 初始值,  结束值, 小数位数, 过渡几秒 , 初始参数
			new CountUp("num0", 0, list, 0, 3, options).start();
			setInterval(function() {
				new CountUp("num0", 0, list, 0, 3, options).start();
			}, 5000)
		}, 2000)


		setTimeout(function() {
			var options = {
				useEasing: true,
				useGrouping: true,
				separator: ',',
				decimal: '.',
				prefix: '',
				suffix: ''
			};
			var flag = 3;
			var list = ['./icon/办理人.png','./icon/抄送人.png','./icon/审批人.png'];
			for (var i = 0; i < flag; i++) {
				new CountUp("num" + i, 0, list[i], 0, 3, options).start();
			}
			setInterval(function() {
				var flag = 3;
				var list = ['./icon/办理人.png','./icon/抄送人.png','./icon/审批人.png']
				for (var i = 0; i < flag; i++) {
					new CountUp("num" + i, 0, list[i], 0, 3, options).start();
				}
			}, 5000)
		}, 100)
	</script>
</html>
